﻿using System;
using AspectCore.DynamicProxy;

namespace AspectCoreTest1
{
    class Program
    {
        static void Main(string[] args)
        {

            ProxyGeneratorBuilder proxyGeneratorBuilder = new ProxyGeneratorBuilder();

            using (var proxyGenerator = proxyGeneratorBuilder.Build())
            {
                Person person = proxyGenerator.CreateClassProxy<Person>();
                person.SayHi("ClueeZhuo");
            }

            Console.ReadKey();
        }
    }
}
